package com.xht.enums;

/**
 * 枚举
 */
public enum AppHttpCodeEnum {

    //成功
    SUCCESS(200,"操作成功"),

    NEED_LOGIN(401,"需要登录后操作"),
    NO_OPERATOR_AUTH(403,"无权限操作"),
    SYSTEM_ERROR(500,"出现错误"),
    USERNAME_EXIST(501,"用户名已存在"),
    PHONENUMBER_EXIST(502,"手机号已存在"),
    EMAIL_EXIST(503,"邮箱已存在"),
    REQUIRE_USERNAME(504,"必需填写用户名"),
    LOGIN_ERROR(505, "用户名或密码错误"),
    CONTEXT_NOT_NULL(506, "评论内容不能为空!!!"),
    FILE_TYPE_ERROR(507, "上传图片格式应该为jpg或者png"),
    USERNAME_NOT_NULL(508, "用户名不能为空"),
    NICKNAME_NOT_NULL(509, "昵称不能为空"),
    PASSWORD_NOT_NULL(510, "密码不能为空"),
    EMAIL_NOT_NULL(511, "邮箱不能为空"),

    TAG_NAME_NOT_NULL(512, "标签名不能为空"),
    TAG_REMARK_NOT_NULL(513, "标签备注不能为空"),
    TAG_NAME_EXIST(514, "标签名已经存在"), ARTICLE_NOT_NULL(515, "文章内容不符合发表要求!"),
    ROLENAME_EXIST(515, "角色名已经存在或者不能为空"),
    NOT_DELETE_YOURSELVES(516, "不能删除当前用户"),
    NOT_DELETE_CATEGORY(517, "该分类下还有文章不能删除"),
    TITLEORURL_NOT_NULL(518, "标题或视频不能为空"), USERIDERRO(519, "createBy出错了!!注意一下哦");
    int code;
    String msg;

     AppHttpCodeEnum(int code, String msg) {
         this.code = code;
         this.msg = msg;
     }
     public int getCode() {
         return code;
     }
     public String getMsg() {
         return msg;
     }

}
